const Router = require('@koa/router')

const userRouter = new Router({
    prefix:'/user'
})

userRouter.get('/',(ctx,next)=>{
    ctx.body = {
        message: 'user home page'
    }
})
diyi='diyi'
userRouter.post('/add',(ctx,next)=>{
    ctx.body = {
        message: 'add user'
    }
})

module.exports = userRouter;